import React, { useEffect } from 'react'
import { packDocumentTitle } from '../../common/helper'

export default function Article(props: any) {

  useEffect(() => {
    packDocumentTitle(props.location.pathname)
  })
  function test() {
    alert('一样的么')
  }

  return (
    <main>
      <div style={{ width: '100%', height: '100vh', background: '#0e0', padding: 0, margin: 0, }}>
        <div onClick={test} style={{ color: 'white' }}>文章</div>
      </div>
    </main>
  )
}